package com.sxfq.loansupermarket.backsystem.modular.remoteSynergy.dao;

import com.baomidou.mybatisplus.mapper.BaseMapper;
import com.baomidou.mybatisplus.plugins.Page;
import com.sxfq.loansupermarket.backsystem.modular.remoteSynergy.entity.CaseSelectionManagementInfo;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * dao
 *
 * @author py
 * @Date 2018年4月19日23:15:54
 */
public interface CaseSelectionManagementDao extends BaseMapper<CaseSelectionManagementInfo> {
    List<CaseSelectionManagementInfo> getQueryPages(@Param("page") Page<CaseSelectionManagementInfo> page, Map<String, Object> params);

    int getQueryPagesCount(@Param("page") Page<CaseSelectionManagementInfo> page, Map<String, Object> params);

    List<String> getAllCasesIds();

    List<String> getAllExpertIds();

    void insertExpertAndCase(@Param("expertId") String expertId,@Param("ids") String []ids);

    void updateCasesForDistribution(@Param("ids") String []ids);

    String isVoteToday(@Param("openid") String openid,@Param("caseid") String caseid);

    void insertCaseWechatVote(@Param("openid") String openid,@Param("caseid") String caseid);

    void updateCaseVote(@Param("caseid") String caseid);
}